Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Bot new invoke type: config #6632

Merged
merged 2 commits into from
Jun 9, 2023
Merged

Support Bot new invoke type: config #6632

merged 2 commits into from
Jun 9, 2023

Conversation

yingduyingdu
Copy link
Collaborator

@yingduyingdu yingduyingdu commented May 17, 2023

Fixes #6634

Description

Support new bot invoke type: config.

Specific Changes

  • Support new config invoke requests, including config/submit and config/fetch.
  • Support related bot schema for Bot config responses.

Testing

E2E manual tests against local changes for various config requests and responses.
Unit Tests.

@coveralls
Copy link
Collaborator

coveralls commented May 17, 2023

Pull Request Test Coverage Report for Build 352211

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 28 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.005%) to 78.988%

Files with Coverage Reduction New Missed Lines %
/libraries/Microsoft.Bot.Builder/Teams/TeamsActivityHandler.cs 28 78.81%
Totals Coverage Status
Change from base Build 351887: 0.005%
Covered Lines: 25934
Relevant Lines: 32833

💛 - Coveralls

@yingduyingdu yingduyingdu marked this pull request as ready for review May 18, 2023 20:46
@yingduyingdu yingduyingdu requested a review from a team as a code owner May 18, 2023 20:46
}

/// <summary>
/// Override this in a derived class to provide logic for when a config is fetched.
Copy link

@FBX622 FBX622 May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: should be "config is submitted".

Copy link
Collaborator Author

@yingduyingdu yingduyingdu May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in the next iteration

namespace Microsoft.Bot.Schema.Teams
{
/// <summary>
/// Specifies bot config authe, including type and suggestedActions.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: "auth"

Copy link
Collaborator Author

@yingduyingdu yingduyingdu May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in the next iteration

@yingduyingdu yingduyingdu added the Automation: No parity PR does not need to be applied to other languages. label May 18, 2023
/// <summary>
/// Specifies Invoke response base including response type.
/// </summary>
public partial class InvokeResponseBase
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to name it as InvokeResponseBase, will we have a class of InvokeResponse? I saw we have both classes for task.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will align with our class design in the reference repo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can sync up with you offline for this.

await ((IBot)bot).OnTurnAsync(turnContext);

// Assert
//Assert.Equal(2, bot.Record.Count);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is commented.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in the next iteration

await ((IBot)bot).OnTurnAsync(turnContext);

// Assert
//Assert.Equal(2, bot.Record.Count);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is commented out.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in the next iteration

@BruceHaley
Copy link
Contributor

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll
✔️ No Binary Compatibility issues for Microsoft.Bot.Schema.dll

@yingduyingdu
Copy link
Collaborator Author

The PR will NOT be merged before the Bot config front-end changes rollout to R3.
It will take a couple of days to weeks to roll out to R3 from now.

Copy link
Collaborator

@ceciliaavila ceciliaavila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation: No parity PR does not need to be applied to other languages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support New Bot Invoke Type: Config
7 participants